package common.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import common.model.enums.MilestoneRequirementTypeEnum;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 米泽鹏
 * @since 2024-01-19 下午 05:05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_milestone_requirement")
@ApiModel(value = "GMilestoneRequirement对象", description = "")
public class GMilestoneRequirement extends BasePo<GMilestoneRequirement> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "里程碑id")
	private Long milestoneId;

	@ApiModelProperty(value = "类型：	1-物品")
	@TableField("type")
	private MilestoneRequirementTypeEnum type;

	@ApiModelProperty(value = "元素id")
	private Long elementId;

	@ApiModelProperty(value = "数量")
	private Integer quantity;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
